@echo off
set name=0
set var=0
setlocal EnableDelayedExpansion 
for %%i in (*.jpg) do (
	set name=%%i
	echo %%i 
	echo --^> 
	echo !name:~0,-8!.jpg
	ren "%%i" !name:~0,-8!.jpg
	rem echo %%i
)
pause